package vip.ipav.spring.cloud.handle;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.ipav.spring.cloud.service.HelloService;

/**
 * 测试控制器
 *
 *
 */
@RestController
public class HelloController implements HelloService {
    @GetMapping("who")
    public String who() {
        return "I am MicroServiceA";
    }

    @Override
    public String hello(String p1, String p2) {
        System.out.println(p1+"\t"+p2);
        return p1 +" to" + p2;
    }

    @Override
    public String post() {
        return "Hello Post Happy!";
    }
}
